package cn.buk.api.ctrip.dto.hotel;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by william on 2015-1-22.
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "http://www.opentravel.org/OTA/2003/05")
public class HotelAvailRequest {

    @XmlAttribute(name="Version")
    private String version = "1.0";

    @XmlElementWrapper(name="AvailRequestSegments")
    @XmlElement(name="AvailRequestSegment")
    private List<HotelAvailRequestSegment> hotelAvailRequestSegments = new ArrayList<HotelAvailRequestSegment>();

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public List<HotelAvailRequestSegment> getHotelAvailRequestSegments() {
        return hotelAvailRequestSegments;
    }

    public void setHotelAvailRequestSegments(List<HotelAvailRequestSegment> hotelAvailRequestSegments) {
        this.hotelAvailRequestSegments = hotelAvailRequestSegments;
    }
}
